<!--    事件处理-->
<script>
export default {
  data(){
    return{
      count:0
    }
  },
  methods:{
    handlerCount(minus){
      this.count = this.count - minus
    }
  }
}
</script>

<template>
  <h1>{{count}}</h1>
  <button @click="count++">点击加一</button>
  <button @click="handlerCount(1)">点击减一</button>

</template>


<style>

</style>